/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户历史记录Entity
 * @author 罗天文
 * @version 2018-03-14
 */
public class HkHistory extends DataEntity<HkHistory> {
	
	private static final long serialVersionUID = 1L;
	private String imgSrc;		// 图片地址
	private String imgLinks;		// 图片链接
	private String imgNote;		// 图片说明
	private Integer imgRank;		// 图片序号
	private String model;		// 所属模块
	private String state;		// 状态
	private HkAllAdv source;		// 源id
	private HkUser user;		// 用户id
	
	public HkHistory() {
		super();
	}

	public HkHistory(String id){
		super(id);
	}

	@Length(min=0, max=200, message="图片地址长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=200, message="图片链接长度必须介于 0 和 200 之间")
	public String getImgLinks() {
		return imgLinks;
	}

	public void setImgLinks(String imgLinks) {
		this.imgLinks = imgLinks;
	}
	
	@Length(min=0, max=200, message="图片说明长度必须介于 0 和 200 之间")
	public String getImgNote() {
		return imgNote;
	}

	public void setImgNote(String imgNote) {
		this.imgNote = imgNote;
	}
	
	public Integer getImgRank() {
		return imgRank;
	}

	public void setImgRank(Integer imgRank) {
		this.imgRank = imgRank;
	}
	
	@Length(min=0, max=1, message="所属模块长度必须介于 0 和 1 之间")
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	public HkAllAdv getSource() {
		return source;
	}

	public void setSource(HkAllAdv source) {
		this.source = source;
	}
	
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
}